/* list.scss */
@charset "UTF-8";
@import "common/var";
@import "mixins/mixins";

@include b(itemList) {
  overflow: hidden auto;
  padding: 15px;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  .item {
    display: flex;
    align-items: center;
    margin: 3px 0;

    .key {
      width: 100px;
      flex-shrink: 0;
      padding: 4px 4px;
      background: $--color-bgColor;
      border-radius: 5px;
      font-size: 16px;
      margin-right: 15px;
    }

    .value {
      flex: 1;
      white-space: nowrap;
      flex-wrap: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      text-align: left;
    }
  }
}
@include b(dataList) {
  overflow: hidden auto;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  &-content {
    flex: 1;
    overflow-y: auto;
    &-list {
      display: flex;
      flex-direction: column;
      border-radius: 4px;
      border-bottom: 1px solid rgba($color: $--color-primary, $alpha: 0.3);
      padding: 0 10px;
      cursor: pointer;
      &-title {
        border-left: 4px solid rgba($color: $--color-primary, $alpha: 0.5);
        background: transparent;
        color: $--color-font;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        padding: 0 10px;
        margin-top: 10px;
        font-size: 18px;
        font-weight: bold;
      }
      &-title-selected {
        border-left: 4px solid rgba($color: $--color-active, $alpha: 0.5);
        background: transparent;
        color: $--color-active;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        padding: 0 10px;
        margin-top: 10px;
        font-size: 18px;
        font-weight: bold;
      }
      &-item {
        display: flex;
        align-items: center;

        .key {
          flex-shrink: 0;
          padding: 1px 4px;
          border-radius: 5px;
          font-size: 16px;
          margin-right: 10px;
        }

        .value {
          flex: 1;
          white-space: nowrap;
          flex-wrap: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
          text-align: left;
        }
      }
    }
  }
}
@include b(scrollList) {
  height: 100%;
  overflow: auto;

  @keyframes moveToBottom {
    0% {
        transform: translateY(-47px);
    }

    100% {
        transform: translateY(0);
    }
}

.moveToBottom {
    animation: moveToBottom 500ms ease-in-out forwards;
}

@keyframes fadeInFromTop {
    0% {
        opacity: 0;
        transform: translateY(-47px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        color: #683BD6;
    }
}

  .show {
      animation: fadeInFromTop 500ms ease-in-out forwards;
  }
}
@include b(pager) {}